<?php

function connect(){
	$conn = mysqli_connect('localhost','root','root','baixiu');
	return $conn;
}
 function query($conn,$sql){
 	$result = mysqli_query($conn,$sql);

 	$arr=[];
 	while($row = mysqli_fetch_assoc($result)){
 		$arr[]=$row;
 	}
 	return $arr;
 }


?>